*Paper: Fiscal Rules, Corruption and Electoral Accountability - Replication Files

clear all
cap log close 
set more off


**Global files
global folder "/Users/tommasogiommoni/Dropbox/Determinants of corruption/Stability pact and corruption/Replication files JOP"


********************************************************************************
****----						Dataset open 					    	----**** 
********************************************************************************

use "$folder/Data/TableA3.dta", clear

**-- Global

global controls7 proportion_female_Elected_lag av_education_Elected_lag av_age_Elected_lag  victory_margin_lag term_limit_lag 
global controls7_int  c.proportion_female_Elected_lag##i.anno c.av_education_Elected_lag##i.anno c.av_age_Elected_lag##i.anno c.victory_margin_lag##i.anno  c.term_limit_lag##i.anno
global controls8_int  c.proportion_female_Elected_lag##i.anno c.av_age_Elected_lag##i.anno

**-- Panel dataset

xtset codcom anno
fvset base 2012 anno

********************************************************************************
****----						Analysis				    			----**** 
********************************************************************************

****---- Analysis on policy intensity (columns 1-6) ----****

qui reghdfe corruption_PC_sd S##T P i.region_year $controls7_int if abs(P)<2500 & lnDSP_goal_2b==2 & FURs==0 & (special_region==0 | regione=="SICILIA" | regione=="SARDEGNA"), absorb(codcom) vce(cluster codcom)
est store tab1_4 
qui reghdfe corruption_PC_sd S##T P i.region_year $controls7_int if abs(P)<2500 & lnDSP_goal_5b==5 & FURs==0 & (special_region==0 | regione=="SICILIA" | regione=="SARDEGNA"), absorb(codcom) vce(cluster codcom)
est store tab1_6
 
qui reghdfe capital_ext_PC S##T P i.region_year $controls7_int if abs(P)<2500 & lnDSP_goal_2b==2 & FURs==0 & (special_region==0 | regione=="SICILIA" | regione=="SARDEGNA"), absorb(codcom) vce(cluster codcom)
est store tab1_8
qui reghdfe capital_ext_PC S##T P i.region_year $controls7_int if abs(P)<2500 & lnDSP_goal_5b==5 & FURs==0 & (special_region==0 | regione=="SICILIA" | regione=="SARDEGNA"), absorb(codcom) vce(cluster codcom)
est store tab1_10
 
qui reghdfe corruption_exp_log_sd S##T P i.region_year $controls7_int if abs(P)<2500 & lnDSP_goal_2b==2 & FURs==0 & (special_region==0 | regione=="SICILIA" | regione=="SARDEGNA"), absorb(codcom) vce(cluster codcom)
est store tab1_11
qui reghdfe corruption_exp_log_sd S##T P i.region_year $controls7_int if abs(P)<2500 & lnDSP_goal_5b==5 & FURs==0 & (special_region==0 | regione=="SICILIA" | regione=="SARDEGNA"), absorb(codcom) vce(cluster codcom)
est store tab1_12

****---- Analysis on corruption related spending (columns 7-8) ----****

qui reghdfe terr_amb_tras_sh S##T P i.region_year $controls7_int if abs(P)<2500 & FURs==0 & (special_region==0 | regione=="SICILIA" | regione=="SARDEGNA"), absorb(codcom) vce(cluster codcom)
est store tab_1

qui reghdfe other_categories_sh S##T P i.region_year $controls7_int if abs(P)<2500 & FURs==0 & (special_region==0 | regione=="SICILIA" | regione=="SARDEGNA"), absorb(codcom) vce(cluster codcom)
est store tab_2

****---- Tables ----****

esttab tab1_4 tab1_6 tab1_11 tab1_12 tab1_8 tab1_10 using "$folder/Tables/TableA3_columns_1_6.tex", compress keep(1.S#1.T ) se r2 staraux collabels(, none) ml(,none) cells(b(star fmt (%9.3f)) se(par)) star(* 0.10 ** 0.05 *** 0.01) replace
esttab tab_1 tab_2 using "$folder/Tables/TableA3_columns_7_8.tex", compress keep(1.S#1.T ) se r2 staraux collabels(, none) ml(,none) cells(b(star fmt (%9.3f)) se(par)) star(* 0.10 ** 0.05 *** 0.01) replace




